package com.quark.model.system.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


/**
 * @author 张高昌
 * @date 2021/11/6 11:28
 * @description TODO
 */
@Data
@ApiModel("登录参数")
public class LoginModel {

    @NotBlank(message = "登录名称不能为空！")
    @Length(min = 4, max = 15)
    @ApiModelProperty(value = "登录名称", readOnly = true)
    private String loginame;

    @NotBlank(message = "密码不能为空！")
    @Length(min = 5, max = 25)
    @ApiModelProperty(value = "密码", readOnly = true)
    private String password;

    @NotBlank(message = "验证码不能为空！")
    @Length(min = 4, max = 10)
    @ApiModelProperty(value = "验证码", readOnly = true)
    private String code;

}
